.class public Lcom/example/m6shop/DishesActivity22$MyAdapter;
.super Landroid/support/v4/view/PagerAdapter;
.source "DishesActivity22.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/example/m6shop/DishesActivity22;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x1
    name = "MyAdapter"
.end annotation


# instance fields
.field private array:Ljava/util/ArrayList;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/ArrayList",
            "<",
            "Lbean/Shopimg;",
            ">;"
        }
    .end annotation
.end field

.field private list:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Landroid/widget/ImageView;",
            ">;"
        }
    .end annotation
.end field

.field final synthetic this$0:Lcom/example/m6shop/DishesActivity22;


# direct methods
.method public constructor <init>(Lcom/example/m6shop/DishesActivity22;Ljava/util/List;Ljava/util/List;)V
    .locals 1
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List",
            "<",
            "Lbean/Shopimg;",
            ">;",
            "Ljava/util/List",
            "<",
            "Landroid/widget/ImageView;",
            ">;)V"
        }
    .end annotation

    .prologue
    .line 1148
    .local p2, "listcx":Ljava/util/List;, "Ljava/util/List<Lbean/Shopimg;>;"
    .local p3, "list":Ljava/util/List;, "Ljava/util/List<Landroid/widget/ImageView;>;"
    iput-object p1, p0, Lcom/example/m6shop/DishesActivity22$MyAdapter;->this$0:Lcom/example/m6shop/DishesActivity22;

    .line 1147
    invoke-direct {p0}, Landroid/support/v4/view/PagerAdapter;-><init>()V

    .line 1144
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/example/m6shop/DishesActivity22$MyAdapter;->array:Ljava/util/ArrayList;

    .line 1145
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/example/m6shop/DishesActivity22$MyAdapter;->list:Ljava/util/List;

    .line 1149
    check-cast p2, Ljava/util/ArrayList;

    .end local p2    # "listcx":Ljava/util/List;, "Ljava/util/List<Lbean/Shopimg;>;"
    iput-object p2, p0, Lcom/example/m6shop/DishesActivity22$MyAdapter;->array:Ljava/util/ArrayList;

    .line 1150
    iput-object p3, p0, Lcom/example/m6shop/DishesActivity22$MyAdapter;->list:Ljava/util/List;

    .line 1152
    return-void
.end method


# virtual methods
.method public destroyItem(Landroid/view/View;ILjava/lang/Object;)V
    .locals 0
    .param p1, "arg0"    # Landroid/view/View;
    .param p2, "arg1"    # I
    .param p3, "arg2"    # Ljava/lang/Object;

    .prologue
    .line 1175
    check-cast p1, Landroid/support/v4/view/ViewPager;

    .end local p1    # "arg0":Landroid/view/View;
    check-cast p3, Landroid/view/View;

    .end local p3    # "arg2":Ljava/lang/Object;
    invoke-virtual {p1, p3}, Landroid/support/v4/view/ViewPager;->removeView(Landroid/view/View;)V

    .line 1176
    return-void
.end method

.method public finishUpdate(Landroid/view/View;)V
    .locals 0
    .param p1, "arg0"    # Landroid/view/View;

    .prologue
    .line 1201
    return-void
.end method

.method public getCount()I
    .locals 1

    .prologue
    .line 1156
    iget-object v0, p0, Lcom/example/m6shop/DishesActivity22$MyAdapter;->list:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    return v0
.end method

.method public instantiateItem(Landroid/view/View;I)Ljava/lang/Object;
    .locals 3
    .param p1, "arg0"    # Landroid/view/View;
    .param p2, "arg1"    # I

    .prologue
    .line 1161
    check-cast p1, Landroid/support/v4/view/ViewPager;

    .end local p1    # "arg0":Landroid/view/View;
    iget-object v1, p0, Lcom/example/m6shop/DishesActivity22$MyAdapter;->list:Ljava/util/List;

    invoke-interface {v1, p2}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Landroid/view/View;

    invoke-virtual {p1, v1}, Landroid/support/v4/view/ViewPager;->addView(Landroid/view/View;)V

    .line 1162
    move v0, p2

    .line 1163
    .local v0, "index":I
    iget-object v1, p0, Lcom/example/m6shop/DishesActivity22$MyAdapter;->list:Ljava/util/List;

    invoke-interface {v1, p2}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Landroid/widget/ImageView;

    new-instance v2, Lcom/example/m6shop/DishesActivity22$MyAdapter$1;

    invoke-direct {v2, p0}, Lcom/example/m6shop/DishesActivity22$MyAdapter$1;-><init>(Lcom/example/m6shop/DishesActivity22$MyAdapter;)V

    invoke-virtual {v1, v2}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 1170
    iget-object v1, p0, Lcom/example/m6shop/DishesActivity22$MyAdapter;->list:Ljava/util/List;

    invoke-interface {v1, p2}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v1

    return-object v1
.end method

.method public isViewFromObject(Landroid/view/View;Ljava/lang/Object;)Z
    .locals 1
    .param p1, "arg0"    # Landroid/view/View;
    .param p2, "arg1"    # Ljava/lang/Object;

    .prologue
    .line 1180
    if-ne p1, p2, :cond_0

    const/4 v0, 0x1

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method public restoreState(Landroid/os/Parcelable;Ljava/lang/ClassLoader;)V
    .locals 0
    .param p1, "arg0"    # Landroid/os/Parcelable;
    .param p2, "arg1"    # Ljava/lang/ClassLoader;

    .prologue
    .line 1186
    return-void
.end method

.method public saveState()Landroid/os/Parcelable;
    .locals 1

    .prologue
    .line 1190
    const/4 v0, 0x0

    return-object v0
.end method

.method public startUpdate(Landroid/view/View;)V
    .locals 0
    .param p1, "arg0"    # Landroid/view/View;

    .prologue
    .line 1196
    return-void
.end method
